<?php
session_start();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="css/style.css" media="all" />
<link rel="stylesheet" type="text/css" href="css/style_inscription.css" media="all" />
<script type="text/javascript" src="js/jquery/jquery.js"></script> 
<script type="text/javascript" src="js/jquery/jquery.validate.min.js"></script>
<script type="text/javascript" src="js/formulaire_a_valider.js"></script>
<title>MovieAdvice</title>
</head>

<body>

<?php
require_once 'config.php';
require_once 'view/header.php'; 
?>

<div id="bloc_principal">

<!-- Formulaire d'inscription -->
<div id="formulaire">
<img src="images/inscription.png" alt="Inscription" />

<br/>
<br/>
<?php
if (isset($_SESSION['erreur_formulaire'])) {
	echo "<div class='erreur_formulaire'>".$_SESSION['erreur_formulaire']."</div>";
}
?>
<form name="formulaire_inscription" id="formulaire_inscription" action=<?php echo "'".$fcInscritpion."'"; ?> method="post" >

<label for="prenom">Prénom</label><br/><input type="text" name="prenom" id="prenom" /><br/><br/>
<label for="nom">Nom</label><br/><input type="text" name="nom" id="nom" /><br/><br/>
<label for="mail">Adresse e-mail</label><br/><input type="text" name="mail" id="mail" /><br/><br/>
<label for="password">Mot de passe</label><br/><input type="password" name="password" id="password" /><br/><br/>
<label for="password_confirm">Confirmation</label><br/><input type="password" id="password_confirm" name="password_confirm" /><br/><br/>

<input type="image" src="images/bouton_inscription.png" alt="Valider l'inscription"/>
<input type="hidden" value="Inscription" name="valide_inscription" />
</form>
</div>

</div>

</body>
</html>